QT       += core gui multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

QMAKE_CXXFLAGS_RELEASE += -O2

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += ./Mapper ./Nes_Core ./nes_apu ./Qt_Nes

SOURCES += \
    Mapper/mapper_0.cpp \
    Mapper/mapper_1.cpp \
    Mapper/mapper_2.cpp \
    Mapper/mapper_3.cpp \
    Mapper/mapper_4.cpp \
    Mapper/mapper_66.cpp \
    Nes_Core/Simple_Apu.cpp \
    Nes_Core/bus.cpp \
    Nes_Core/cartridge.cpp \
    Nes_Core/controller.cpp \
    Nes_Core/cpu.cpp \
    Nes_Core/ppu.cpp \
    Qt_Nes/debugger.cpp \
    Qt_Nes/mainwindow.cpp \
    nes_apu/Blip_Buffer.cpp \
    nes_apu/Multi_Buffer.cpp \
    nes_apu/Nes_Apu.cpp \
    nes_apu/Nes_Namco.cpp \
    nes_apu/Nes_Oscs.cpp \
    nes_apu/Nes_Vrc6.cpp \
    nes_apu/Nonlinear_Buffer.cpp \
    nes_apu/apu_snapshot.cpp \
    main.cpp

HEADERS += \
    Mapper/mapper.h \
    Mapper/mapper_0.h \
    Mapper/mapper_1.h \
    Mapper/mapper_2.h \
    Mapper/mapper_3.h \
    Mapper/mapper_4.h \
    Mapper/mapper_66.h \
    Nes_Core/Simple_Apu.h \
    Qt_Nes/speaker.h \
    boost/config.hpp \
    boost/cstdint.hpp \
    boost/static_assert.hpp \
    Nes_Core/bus.h \
    Nes_Core/cartridge.h \
    Nes_Core/component.h \
    Nes_Core/controller.h \
    Nes_Core/cpu.h \
    Nes_Core/palette.h \
    Nes_Core/ppu.h \
    Qt_Nes/debugger.h \
    Qt_Nes/mainwindow.h \
    Qt_Nes/screen.h \
    nes_apu/Blip_Buffer.h \
    nes_apu/Blip_Synth.h \
    nes_apu/Multi_Buffer.h \
    nes_apu/Nes_Apu.h \
    nes_apu/Nes_Namco.h \
    nes_apu/Nes_Oscs.h \
    nes_apu/Nes_Vrc6.h \
    nes_apu/Nonlinear_Buffer.h \
    nes_apu/apu_snapshot.h \
    nes_apu/blargg_common.h \
    nes_apu/blargg_source.h

FORMS += \
    Ui/debugger.ui \
    Ui/mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
